package com.ajaaxx.datatypes;

import java.util.Set;

public class Subject {

	private int subjectId;
	private String subjectName;
	private Set<Question> questions;
	
	public int getSubjectId() {
		return subjectId;
	}
	public void setSubjectId(int subjectId) {
		this.subjectId = subjectId;
	}
	public String getSubjectName() {
		return subjectName;
	}
	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}
	public Set<Question> getQuestions() {
		return questions;
	}
	public void setQuestions(Set<Question> questions) {
		this.questions = questions;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj==null) return false;
		
		Subject o = (Subject)obj;
		if(o.getSubjectId()==this.subjectId) return true;
		else return false;
	}
	
}
